.article {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  background-repeat: no-repeat;
  object-fit: cover;

  .articleMain {
    width: 100%;
    height: 100%;
    overflow: auto;
    position: relative;

    .header {
      width: 100%;
      height: 50%;
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative;

      .title {
        color: #ffffff;
        font-size: 40px;
        font-family: AliDL, serif;
        margin-top: 180px;
        font-weight: 600;
      }

      .poemsContainer {
        background: rgba(0, 0, 0, 0.5);
        padding: 12px 24px;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #ffffff;
        font-size: 32px;
        font-family: AliDL, serif;
        margin-top: 12px;
        font-weight: 600;
        border-radius: 20px;
        position: relative;
      }

      .wave1 {
        width: 100%;
        height: 84px;
        position: absolute;
        bottom: 0;
        left: 0;
        background: url("@/assets/banner/bannerWave1.png") repeat-x;
        animation: waveAnimation 5s linear infinite; /* 添加动画 */
      }

      .wave2 {
        width: 100%;
        height: 84px;
        position: absolute;
        bottom: 0;
        left: 0;
        background: url("@/assets/banner/bannerWave2.png") repeat-x;
        animation: waveAnimation 10s linear infinite; /* 速度稍微不同，制造层次感 */
      }

      /* 定义波浪滚动的动画 */
      @keyframes waveAnimation {
        0% {
          background-position: 0 0; /* 从最左侧开始 */
        }
        100% {
          background-position: 100% 0; /* 向右滚动到最右侧 */
        }
      }
    }

    .body {
      width: 100%;
      background-color: #fff;
      min-height: 50%;

      padding: 10px 260px;
      box-sizing: border-box;

      display: flex;
      gap: 20px;

      .aside {
        display: flex;
        flex-direction: column;
        width: 300px;

        @keyframes gradientBG {
          0% {
            background-position: 0 50%;
          }
          50% {
            background-position: 100% 50%;
          }
          100% {
            background-position: 0 50%;
          }
        }

        .userInfoContainer {
          background: linear-gradient(-45deg, #e8d8b9, #eccec5, #a3e9eb, #bdbdf0, #eec1ea);
          background-size: 400% 400%;
          -webkit-animation: gradientBG 10s ease infinite;
          animation: gradientBG 10s ease infinite;
          display: flex;
          flex-direction: column;
          align-items: center;
          border-radius: 10px;
          position: relative;
          overflow: hidden;
          padding: 32px 16px;
          box-sizing: border-box;

          transition: all .3s ease;


          .avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            transition: all .3s ease;

            &:hover {
              //旋转
              transform: rotate(360deg);
            }
          }

          .name {
            font-size: 30px;
            font-weight: 700;
            margin: 20px 0;
            color: #000;
            font-family: AliDL, serif;
          }

          .webInfo {
            width: 100%;
            display: flex;
            flex-direction: row;
            justify-content: space-around;

            .box {
              display: flex;
              flex-direction: column;
              align-items: center;
              justify-content: space-around;
              gap: 10px;

              .info {
                font-size: 20px;
                font-weight: 500;
                color: #000;
                font-family: AliDL, serif;
              }
            }
          }

          &:hover {
            box-shadow: 0 1px 20px -6px rgba(0, 0, 0, 0.5);
          }
        }
      }

      .main {
        width: calc(100% - 300px);
        display: flex;
        flex-direction: column;

        .musicContainer {
          width: 100%;
          height: 80px;
          border: 1px dashed #eaeaea;
          border-radius: 14px;

          display: flex;
          align-items: center;
          padding: 24px;
          box-sizing: border-box;
          gap: 20px;

          .microphone {
            width: 25px;
            height: 25px;
            animation: Scale 1s ease-in-out infinite;
          }

          .info {
            display: flex;
            flex-direction: column;
            gap: 10px;
            align-items: flex-start;

            .text {
              color: #797979;
              font-size: 16px;
              font-family: AliDL, serif;
            }
          }

          @keyframes Scale {
            0% {
              transform: scale(1);
            }
            50% {
              transform: scale(1.2);
            }
            100% {
              transform: scale(1);
            }
          }
        }

        .collectContainer {
          display: flex;
          flex-direction: column;
          gap: 12px;
          margin-top: 16px;

          .collectContainerHeader {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px dashed #eaeaea;
            box-sizing: border-box;
            padding: 16px 0;

            .left {
              display: flex;
              align-items: center;
              gap: 12px;

              .text {
                font-size: 16px;
                font-family: AliDL, serif;
                color: #bdbbbb;
              }
            }

            .right {
              display: flex;
              align-items: center;
              gap: 6px;
              cursor: pointer;

              .text {
                font-size: 16px;
                font-family: AliDL, serif;
                color: #bdbbbb;
              }

              transition: all .3s ease;

              &:hover {
                transform: scale(1.2);
              }
            }
          }

          .collectContainerBody {
            display: grid;
            // 3行
            grid-template-columns: repeat(3, 1fr);
            grid-gap: 12px;

            .articleItem {
              width: 100%;
              //height: 300px;
              border-radius: 16px;
              overflow: hidden;
              position: relative;
              box-shadow: 0 1px 20px -6px rgba(0, 0, 0, 0.5);
              transition: all .3s ease;
              cursor: pointer;

              .image {
                width: 100%;
                height: 170px;
                border-radius: 16px 16px 0 0;
                transition: all .3s ease;
                //z-index: -1;
                position: relative;
              }

              .articleInfo {
                width: 100%;
                z-index: 1;
                height: calc(100% - 170px);
                background-color: #fff;
                position: relative;

                display: flex;
                flex-direction: column;
                align-items: flex-start;
                padding: 12px 16px;
                box-sizing: border-box;

                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;

                .time {
                  display: flex;
                  align-items: center;
                  font-size: 12px;
                  color: #b4b2b2;
                  font-family: AliDL, serif;
                  gap: 10px;
                }

                .title {
                  font-size: 24px;
                  font-weight: 600;
                  font-family: AliDL, serif;
                  color: #000;
                  margin-top: 10px;
                  margin-bottom: 0;
                  text-align: left;

                  overflow: hidden;
                  text-overflow: ellipsis;
                  white-space: nowrap;

                  width: 100%;
                }

                .operateAndCount {
                  display: flex;
                  align-items: center;
                  gap: 10px;
                  margin-top: 12px;

                  .item {
                    display: flex;
                    align-items: center;
                    gap: 5px;

                    .count {
                      font-size: 14px;
                      color: #b4b2b2;
                      font-family: AliDL, serif;
                    }
                  }
                }

                .tag {
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  gap: 5px;
                  flex-wrap: wrap;
                  margin-top: 5px;

                  .tagItem {
                    padding: 2px 8px;
                    background-color: #eee;
                    border-radius: 5px;
                    font-size: 14px;
                    color: #3f3e3e;
                    font-family: AliDL, serif;
                  }
                }
              }

              &:hover {
                box-shadow: 0 1px 20px -6px rgba(0, 0, 0, 0.8);

                .image {
                  transform: scale(1.2);
                }
              }
            }
          }
        }
      }
    }
  }


  &::before {
    content: ""; /* 必须添加内容才能显示伪元素 */
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--common-bg); /* 背景图片 */
    background-position: center;
    filter: blur(10px); /* 初始状态背景模糊 */
    animation: background-zoom-blur 1s ease-in-out forwards;
    z-index: -1; /* 让伪元素位于背景层，保证内容在其上面 */
    background-size: cover;
    background-repeat: no-repeat;
    object-fit: cover;
  }

  @keyframes background-zoom-blur {
    0% {
      top: -20px;
    }
    100% {
      top: 0;
      filter: blur(0px);
    }
  }

  .cursor {
    display: inline-block;
    width: 10px;
    height: 32px;
    background-color: #ffffff;
    margin-left: 5px;
    animation: blink 0.8s step-end infinite;
  }

  @keyframes blink {
    0% {
      opacity: 1;
    }
    50% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
}
